package org.suk.dp.observer;

import java.text.MessageFormat;

/**
 * Description: 看股票同事类<br/>
 * @version V1.0  2017/6/20 21:06  by 石冬冬(dongdong.shi@ucarinc.com) - Heil Hitler
 */
public class StockObserver extends Observer{

    public StockObserver(String name, Secretary secretary) {
        super(name, secretary);
    }

    @Override
    void update() {
        System.out.println(MessageFormat.format("{0} {1} 关闭股票行情，继续工作！",this.secretary.getAction(),this.name));
    }
}
